import service from '@/utils/request'
// @Tags BehavioralTrait
// @Summary 创建行为人特质管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BehavioralTrait true "创建行为人特质管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /BT/createBehavioralTrait [post]
export const createBehavioralTrait = (data) => {
  return service({
    url: '/BT/createBehavioralTrait',
    method: 'post',
    data
  })
}

// @Tags BehavioralTrait
// @Summary 删除行为人特质管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BehavioralTrait true "删除行为人特质管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /BT/deleteBehavioralTrait [delete]
export const deleteBehavioralTrait = (params) => {
  return service({
    url: '/BT/deleteBehavioralTrait',
    method: 'delete',
    params
  })
}

// @Tags BehavioralTrait
// @Summary 批量删除行为人特质管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除行为人特质管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /BT/deleteBehavioralTrait [delete]
export const deleteBehavioralTraitByIds = (params) => {
  return service({
    url: '/BT/deleteBehavioralTraitByIds',
    method: 'delete',
    params
  })
}

// @Tags BehavioralTrait
// @Summary 更新行为人特质管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BehavioralTrait true "更新行为人特质管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /BT/updateBehavioralTrait [put]
export const updateBehavioralTrait = (data) => {
  return service({
    url: '/BT/updateBehavioralTrait',
    method: 'put',
    data
  })
}

// @Tags BehavioralTrait
// @Summary 用id查询行为人特质管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.BehavioralTrait true "用id查询行为人特质管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /BT/findBehavioralTrait [get]
export const findBehavioralTrait = (params) => {
  return service({
    url: '/BT/findBehavioralTrait',
    method: 'get',
    params
  })
}

// @Tags BehavioralTrait
// @Summary 分页获取行为人特质管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取行为人特质管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /BT/getBehavioralTraitList [get]
export const getBehavioralTraitList = (params) => {
  return service({
    url: '/BT/getBehavioralTraitList',
    method: 'get',
    params
  })
}

// @Tags BehavioralTrait
// @Summary 不需要鉴权的行为人特质管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.BehavioralTraitSearch true "分页获取行为人特质管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /BT/getBehavioralTraitPublic [get]
export const getBehavioralTraitPublic = () => {
  return service({
    url: '/BT/getBehavioralTraitPublic',
    method: 'get',
  })
}
